class CreateStoreProducts < ActiveRecord::Migration[5.0]
  def change
    create_table :store_products do |t|
      t.integer :store_id
      t.string :name
      t.string :format
      t.decimal :price
      t.decimal :vip_price
      t.boolean :vipable, default: false
      t.string :introduce
      t.boolean :showable, default: true
      t.boolean :useable, default: true

      t.timestamps
    end
  end
end
